import { createRouter, createWebHashHistory } from 'vue-router'
import TranslationView from '../views/TranslationView.vue'
import HistoryView from '../views/HistoryView.vue'
import SettingsView from '../views/SettingsView.vue'

export default createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: '/translation'
    },
    {
      path: '/translation',
      name: 'translation',
      component: TranslationView
    },
    {
      path: '/history',
      name: 'history',
      component: HistoryView
    },
    {
      path: '/settings',
      name: 'settings',
      component: SettingsView
    }
  ]
})